package com.ktgj.other.domain;

import com.ktgj.other.common.TongChengUtils;
import com.ktgj.other.domain.common.*;

import java.beans.SimpleBeanInfo;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class jkl {
    //获取景区列表
//    public static void main(String[] args) {
//        TongChengUtils tongChengUtils = new TongChengUtils();
//        TongChengInfoList tongChengInfo = new TongChengInfoList();
//        RequestBodyList requestBody = new RequestBodyList();
//        tongChengInfo.setRequestBody(requestBody);
//        HttpTongChengInfo httpTongChengInfo = tongChengUtils.getSceneryListService(tongChengInfo);
//        System.out.println("-----------------------------------");
//    }

    //景区变动增量拉取接口
//    public static void main(String[] args) {
//        TongChengUtils tongChengUtils = new TongChengUtils();
//        TongChengInfoIncrement tongChengInfo = new TongChengInfoIncrement();
//        RequestBodyIncrement requestBody = new RequestBodyIncrement();
//        requestBody.setMaxIncrementId(1);
//        tongChengInfo.setRequestBody(requestBody);
//        HttpTongChengInfoIncrement sceneryIncrementService = tongChengUtils.getSceneryIncrementService(tongChengInfo);
//        System.out.println("------------------------------------");
//    }

    //下单
//    public static void main(String[] args) {
//        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
//        TongChengUtils tongChengUtils = new TongChengUtils();
//        TongChengInfoOrder tongChengInfoOrder = new TongChengInfoOrder();
//        RequestBodyOrder requestBodyOrder = new RequestBodyOrder();
//        List<Integer> ticketsNum = new ArrayList<>();
//        ticketsNum.add(1);
//        requestBodyOrder.setTicketsNum(ticketsNum);//购买数量
//        List<String> bookMan = new ArrayList<>();
//        bookMan.add("李博洋");
//        requestBodyOrder.setBookMan(bookMan);//预定人
//        requestBodyOrder.setBookMobileType(1);//预定人手机类型(1：大陆 0：非大陆)
//        List<String> bookMobile = new ArrayList<>();
//        bookMobile.add("18745654672");
//        requestBodyOrder.setBookMobile(bookMobile);//预定人手机号码
//        List<String> travelerName = new ArrayList<>();
//        travelerName.add("李博洋");
//        requestBodyOrder.setTravelerName(travelerName);//取票人姓名
//        List<String> travelerMobile = new ArrayList<>();
//        travelerMobile.add("18745654672");
//        requestBodyOrder.setTravelerMobile(travelerMobile);//取票人手机号码
//        List<String> travelerIdCardNoList = new ArrayList<>();
//        travelerIdCardNoList.add("231182200010260536");
//        requestBodyOrder.setTravelerIdCardNoList(travelerIdCardNoList);//取票人证件号码
//        List<String> travelerCerTypeList = new ArrayList<>();
//        travelerCerTypeList.add("6050201");
//        requestBodyOrder.setTravelerCerTypeList(travelerCerTypeList);//取票人证件类型 6050201：身份证； 6050202：护照； 6050203：台胞证； 6050204：港澳通行证；
//        requestBodyOrder.setTravelerMobileType(1);//手机类型(1：大陆 0：非大陆)
//        requestBodyOrder.setTravelerIdCardNo("231182200010260536");//取票人证件号
//        requestBodyOrder.setTravelerCerType("6050201");//取票人证件类型
//        requestBodyOrder.setPriceID(1450);//产品ID
//        try {
//            requestBodyOrder.setTravelDate(format.parse("2022-08-01"));//旅游日期
//        } catch (Exception e){
//            System.out.println("日期");
//        }
//        requestBodyOrder.setRemark("");//实名制内容
//        List<String> thirdSerialId = new ArrayList<>();
//        thirdSerialId.add("5569035");
//        requestBodyOrder.setThirdSerialId(thirdSerialId);//第三方流水号
//        tongChengInfoOrder.setRequestBody(requestBodyOrder);
//        tongChengUtils.createOrderService(tongChengInfoOrder);
//    }

    //景区详情查询接口
//    public static void main(String[] args) {
//        TongChengUtils tongChengUtils = new TongChengUtils();
//        TongChengInfoDetail tongChengInfoDetail = new TongChengInfoDetail();
//        RequestBodyDetail requestBodyDetail = new RequestBodyDetail();
//        requestBodyDetail.setSceneryId(1450);
//        tongChengInfoDetail.setRequestBody(requestBodyDetail);
//        HttpTongChengInfoDetail sceneryDetailService = tongChengUtils.getSceneryDetailService(tongChengInfoDetail);
//        System.out.println(sceneryDetailService);
//    }

    //退改规则信息查询接口
//    public static void main(String[] args) {
//        TongChengUtils tongChengUtils = new TongChengUtils();
//        TongChengInfoRule tongChengInfoRule = new TongChengInfoRule();
//        RequestBodyRule requestBody = new RequestBodyRule();
//        requestBody.setViewSceneryRule(true);
//        requestBody.setProductID(1450);
//        tongChengInfoRule.setRequestBody(requestBody);
//        HttpTongChengInfoRule refundRuleService = tongChengUtils.getRefundRuleService(tongChengInfoRule);
//        System.out.println("--------------------------------------------");
//    }

    //下单验证接口
//    public static void main(String[] args) {
//        TongChengUtils tongChengUtils = new TongChengUtils();
//        TongChengInfoDate tongChengInfoDate = new TongChengInfoDate();
//        RequestBodyDate requestBodyDate = new RequestBodyDate();
//        requestBodyDate.setPriceId(1450);
//        requestBodyDate.setTravelDate("2022-08-01");
//        requestBodyDate.setTickets(1);
//        requestBodyDate.setTravelerIdCardNoType(6050201);
//        requestBodyDate.setTravelerIdCardNo("231182200010260536");
//        requestBodyDate.setTravelerMobile("18745654672");
//        tongChengInfoDate.setRequestBody(requestBodyDate);
//        tongChengUtils.createOrderValidateService(tongChengInfoDate);
//    }
}
